﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Globalization;

namespace FarmacieDAL
{
    public partial class Arhiva
    {
        public int Year
        {
            get
            {
                return this.Data.Year;
            }
        }

        public int Month
        {
            get
            {
                return this.Data.Month;
            }
        }

        public int Day
        {
            get
            {
                return this.Data.Day;
            }
        }

        public int Week
        {
            get
            {
                return CultureInfo.CurrentCulture.Calendar.GetWeekOfYear(this.Data,CalendarWeekRule.FirstDay,DayOfWeek.Monday);
            }
        }
    }
}
